package com.javen.service.impl;

import com.javen.dao.ICarDao;
import com.javen.model.Car;
import com.javen.service.ICarService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("carService")
public class CarServiceImpl
        implements ICarService {
    @Resource
    private ICarDao CarDao;

    public List<Car> showCarsByUserId(String user_id) {
        return this.CarDao.showCarsByUserId(user_id);
    }

    public int insertCar(Car car) {
        return this.CarDao.insertCar(car);
    }

    public int updateStatusByLicence(Car car) {
        return this.CarDao.updateStatusByLicence(car);
    }
}


